package org.example.model;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by Sinotn
 *
 * @Author: libin
 * @CreateTime: 2020-06-19 11:55
 * @Description: 商品对象
 */
public class Product implements Serializable {
    /**
     * 商品ID
     */
    private Long id;
    /**
     * 商品名称
     */
    private String productName;
    /**
     * 商品类型
     */
    private String productType;
    /**
     * 商品金额
     */
    private BigDecimal productAmount;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public BigDecimal getProductAmount() {
        return productAmount;
    }

    public void setProductAmount(BigDecimal productAmount) {
        this.productAmount = productAmount;
    }

    public Product() {
    }

    public Product(Long id, String productName, String productType, BigDecimal productAmount) {
        this.id = id;
        this.productName = productName;
        this.productType = productType;
        this.productAmount = productAmount;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", productName='" + productName + '\'' +
                ", productType='" + productType + '\'' +
                ", productAmount=" + productAmount +
                '}';
    }
}
